package puly.arr;
//Sedan轿车类
public class Sedan extends Car{
//    chassis底盘
    private String chassis;

    public Sedan(String brand, double length, double height, String chassis) {
        super(brand, length, height);
        this.chassis = chassis;
    }
    public Sedan(String brand,double length,double height){
        this(brand,length,height,"low");
    }

    public String getChassis() {
        return chassis;
    }

    public void setChassis(String classis) {
        this.chassis = classis;
    }
    public void drive(){
        System.out.println("车辆类型："+getChassis()+"形势比较稳");
    }
}
